for i in range(0, 7):
    for k in range(1, 7 - i):
        print(" ", end = " ")
    for j in range(-i, i + 1):
        print(abs(j) + 1, end=" ")
    print()